// inc/solider.h
#ifndef SOLDIER_H
#define SOLDIER_H

#include "Pieces.h"

class Soldier : public Piece
{
public:
    Soldier(PieceType type, int row, int col, bool isRed);
    ~Soldier() = default;

    // 实现卒的移动规则
    bool is_valid_move(int to_row, int to_col, PieceType board[9][10]) override;

private:
    bool hasCrossedRiver; // 标识是否过河
};

#endif